import axios from "axios";
// 上传
export const uploadImg = async (formData) => {
  //   console.log("afterRead", file);
  // 此时可以自行将文件上传至服务器
  //   const formData = new FormData();
  //   formData.append("file", file.file);
  return axios.post(
    "http://116.62.168.208:8183/upload/imagesAndVideo",
    formData,
    {
      headers: {
        "Content-Type": "multipart/form-data",
      },
    }
  );
};
